<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ShopUpdateHistory extends Model
{
    const UPDATED_AT = null;
    const CREATED_AT = null;
    use HasFactory;
    protected $guarded = [];

    public function shop(){
        return $this->hasOne(ShopDetail::class,'id','shop_manage_id');
    }
    public function first(){
        return $this->hasOne(Department::class,'id','department_one_id');
    }
    public function two(){
        return $this->hasOne(Department::class,'id','department_two_id');
    }
    public function three(){
        return $this->hasOne(Department::class,'id','department_three_id');
    }

}
